package bbs.entity.enums;


public enum SysSettingCodeEnum {
    AUDIT("audit", "bbs.entity.dto.SysSetting4AuditDto","auditSetting" ,"审核设置"),
    COMMENT("comment", "bbs.entity.dto.SysSetting4CommentDto","commentSetting" ,"评论设置"),
    EMAIL("email", "bbs.entity.dto.SysSetting4EmailDto","emailSetting" ,"邮件设置"),
    LIKE("like", "bbs.entity.dto.SysSetting4LikeDto","likeSetting" ,"点赞设置"),
    POST("post", "bbs.entity.dto.SysSetting4PostDto","postSetting" ,"发帖设置"),
    REGISTER("register", "bbs.entity.dto.SysSetting4RegisterDto","registerSetting" ,"注册设置");

    private String code;
    private String classz;
    private String propName;
    private String desc;
    private SysSettingCodeEnum(String code, String classz, String propName, String desc) {
        this.code = code;
        this.classz = classz;
        this.propName = propName;
        this.desc = desc;
    }

    public static SysSettingCodeEnum getByCode(String code) {
        for (SysSettingCodeEnum item : SysSettingCodeEnum.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }
    public String getClassz() {
        return classz;
    }
    public String getPropName() {
        return propName;
    }
    public String getDesc() {
        return desc;
    }

}
